<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增权限组</title>
	<include file="Public:header" />
	<style type="text/css">
		input,textarea{width:190px; border:1px solid #ccc; padding:2px;}
		select{width:190px; border:1px solid #ccc; height:25px; padding:2px;}
	</style>
	<script type="text/javascript">
		function chkfrm()
		{
			if($('#name').val()=='')
			{
				$.messager.show({title:'提示',msg:'请输入编码',timeout:5000,showType:'slide'});
				return false;
			}
			if($('#remark').val()=='')
			{
				$.messager.show({title:'提示',msg:'请输入名称',timeout:5000,showType:'slide'});
				return false;
			}
			$('#form1').submit();
		}
	</script>
</head>
<body class="">

	<div class="demo-info space-out-10px">
		<div class="demo-tip icon-tip"></div>
		<div>权限组可以便捷管理具有相同权限的一个或多个用户的权限</div>
	</div>
	<form id="form1" method="post" action="{:U('Power/role_add_save')}">
		<table class="space-out-10px">
		<tr>
		<td>编码</td><td><input type="text" id="name" name="name" class="easyui-validatebox" required="true" /></td>
		</tr>
		<tr>
		<td>名称：</td><td><input type="text" id="remark" name="remark" class="easyui-validatebox" required="true" /></td>
		</tr>
		<tr>
		<td>&nbsp;</td><td>
		<input type="hidden" id="status" name="status" value="1" />
		<a href="javascript:;" class="easyui-linkbutton" iconCls="icon-save" onclick="chkfrm()">保存</a>
		<a href="{:U('Power/node_list')}" class="easyui-linkbutton" iconCls="icon-undo">取消</a>
		</td>
		</tr>
		</table>
	</form>
</body>
</html>
